﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SkiaAndModel.NodeAbstract
{
  public enum NodeType
    {
        //元件节点
        ElementNode,
        //路径
        PathNode,
        //虚节点
        VirtualNode,
        DataPointer
    }
    /// <summary>
    /// 所有节点的抽象，可以表示元器件节点、母线节点、路径节点等
    /// </summary>
    public interface INode
    {

        /// <summary>
        /// 节点的唯一标识符
        /// </summary>
        Guid Id { get; set; }


        string Name { get; set; }

        /// <summary>
        /// 当前节点的类型，路径节点或者元器件节点
        /// </summary>
        NodeType NodeType { get; set; }



        int GetHeight();
    }
}
